package com.jsmile.cloud.msgcenter.api.req;

import java.util.List;

import com.jsmile.mall.api.to.BaseUpdateTo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 龚亮
 * @version 1.0
 * @desc 为了薪资破万，还是睡一会儿吧...!
 * @date 2019年04月01日 04:45:35
 */
@Data
@ApiModel
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ReqPayOrderCreate extends BaseUpdateTo implements java.io.Serializable {

    @ApiModelProperty(value = "付款方式，1-微信小程序支付 2微信h5支付 3微信app支付 4支付宝h5支付 5支付宝APP支付 0余额支付")
    private Integer payType;

    @ApiModelProperty(value = "ip")
    private String ip;
    @ApiModelProperty(value = "openid")
    private String openId;
    private List<PayOrderInfo> payOrderInfos;

    @Data
    @ApiModel
    public static class PayOrderInfo {
        @ApiModelProperty(value = "实付金额")
        private Long actuallyPayAmount;
        @ApiModelProperty(value = "订单编号")
        private Long orderNo;
        @ApiModelProperty(value = "商品标题")
        private String title;
        @ApiModelProperty(value = "明细")
        private String detial;
    }
}
